<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>"/"代表webapps目录的常见应用场景</title>
<%--使用绝对路径的方式引用js脚本--%>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery-1.8.3.min.js"></script>
<%--${pageContext.request.contextPath}与request.getContextPath()写法是得到的效果是一样的--%>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jquery-1.8.3.min.js"></script>
<%--使用绝对路径的方式引用css样式--%>
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/css/index.css" type="text/css" />
</head>

<body>
	<%--form表单提交--%>
	<form action="${pageContext.request.contextPath}/CheckServlet"
		method="post">
		responseDemo01.jsp <input type="submit" value="提交">
	</form>
	<%--超链接跳转页面--%>
	<a href="${pageContext.request.contextPath}/index.jsp">跳转到首页</a>
</body>
</html>